// RUN_PIPELINE_TILL: FRONTEND
// DIAGNOSTICS: -UNUSED_PARAMETER

object T1 {
    operator fun Int.provideDelegate(host: T1, p: Any): Long = 2
    operator fun Long.getValue(receiver: String, p: Any): Double = 1.0

    val String.test1 by 1
    val test2 <!DELEGATE_SPECIAL_FUNCTION_NONE_APPLICABLE!>by<!> 1
}

/* GENERATED_FIR_TAGS: funWithExtensionReceiver, functionDeclaration, integerLiteral, objectDeclaration, operator,
propertyDeclaration, propertyDelegate, propertyWithExtensionReceiver */
